import request from "../utils/request";

/**
 * 折扣商品
 * @param {*} obj 
 * @returns 
 */
export const getPromoteGoods = (obj) => {
  return request({
    url: "api/Wechat/Merchant_GetPromoteGoods",
    method: "GET",
    params: obj,
  });
};

/**
* 获取供应商所有商品类型和商品
* @param {*} obj 
* @returns 
*/
export const getTypesAndGoods = (obj) => {
  return request({
    url: "api/Wechat/Merchant_GetTypesAndGoods",
    method: "GET",
    params: obj,
  });
}

/**
 * 搜索商品
 * @param {*} obj
 * @returns
 */
export const searchGoods = (obj) => {
  return request({
    url: "api/Wechat/Merchant_SearchGoods",
    method: "GET",
    params: obj,
  });
};

/**
 * 获取单个商品
 * @param {*} obj 
 * @returns 
 */
export const getSingleGoods = (obj) => {
  return request({
    url: "api/Wechat/Merchant_GetSingleGoods",
    method: "GET",
    params: obj,
  });
};